#!/usr/bin/python
# -*- coding: UTF-8 -*-

import datetime
from datetime import date

""" 
@version: 1.0
@author: jin.li.o
@license: Apache Licence 
@contact: x.leevin@gmail.com
@software: PyCharm
@file: datetime.py
@time: 2018/10/29
"""


def getYesterday():
    today = date.today()
    one_day = datetime.timedelta(days=1)
    yesterday = today - one_day
    return yesterday


print(getYesterday())
